import request from '@/utils/request'

export function fetchData(data) {
  return request({
    url: '/genauth/menuManage/getMenu.do',
    method: 'post',
    params: data
  })
}

export function upsertMenu(data) {
  return request({
    // url: '/user/login',
    url: '/genauth/menuManage/upsertMenu.do',
    method: 'post',
    params: data
  })
}

export function deleteData(data) {
  return request({
    // url: '/user/login',
    url: '/genauth/menuManage/deleteMenu.do',
    method: 'post',
    params: data
  })
}
